package com.netease.pris.activity;

import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.netease.framework.ActivityEx;

public class OfflineDownloadError extends ActivityEx
  implements View.OnClickListener
{
  public static String a;
  public static String b;
  public static int c;
  private static String d = "left_size";
  private ImageView e;
  private TextView f;
  private TextView g;
  private Button h;
  private String i = null;
  private ProgressDialog j;
  private Object k = new Object();
  private boolean l = false;
  private cq m;

  static
  {
    a = "download_cache_no_space";
    b = "cache_over_limit_error_type";
    c = -1;
  }

  public static Intent a(Context paramContext)
  {
    return a(paramContext, a);
  }

  public static Intent a(Context paramContext, int paramInt)
  {
    Intent localIntent = a(paramContext, b);
    localIntent.putExtra(d, paramInt);
    return localIntent;
  }

  public static Intent a(Context paramContext, String paramString)
  {
    Intent localIntent = new Intent();
    localIntent.setClass(paramContext, OfflineDownloadError.class);
    localIntent.setAction(paramString);
    return localIntent;
  }

  private void b()
  {
    this.e = ((ImageView)findViewById(2131558573));
    this.f = ((TextView)findViewById(2131558574));
    this.g = ((TextView)findViewById(2131558575));
    this.h = ((Button)findViewById(2131558572));
    this.h.setOnClickListener(this);
  }

  public void onClick(View paramView)
  {
    if (this.m != null)
    {
      this.m.cancel(true);
      this.m = null;
    }
    this.m = new cq(this, this);
    this.m.execute(new Void[0]);
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903093);
    setTitle(2131362116);
    b();
    Intent localIntent = getIntent();
    if (localIntent != null)
      this.i = localIntent.getAction();
    if (TextUtils.isEmpty(this.i))
      finish();
    while (true)
    {
      return;
      if (this.i.equals(a))
      {
        this.f.setText(2131362316);
        this.g.setText(2131362319);
        this.e.setImageResource(2130837706);
        continue;
      }
      if (!this.i.equals(b))
        continue;
      this.e.setImageResource(2130837708);
      this.f.setText(2131362320);
      int n = localIntent.getIntExtra(d, 0);
      TextView localTextView = this.g;
      Object[] arrayOfObject = new Object[1];
      arrayOfObject[0] = Integer.valueOf(n);
      localTextView.setText(getString(2131362321, arrayOfObject));
    }
  }

  protected void onDestroy()
  {
    super.onDestroy();
    if (this.m != null)
    {
      this.m.cancel(true);
      this.m = null;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.OfflineDownloadError
 * JD-Core Version:    0.6.0
 */